<template>
    <up-cell-group>
        <button class="buttonclass" open-type="contact" >
        <up-cell  title="在线客服"></up-cell>
        </button>
        <button class="buttonclass" @click="callPhone('18508460368')" >
        <up-cell  title="电话客服"></up-cell>
        </button>
    </up-cell-group>
</template>

<script setup>
const callPhone = (phoneNumber = '') => {
    let num = phoneNumber.toString()
    uni.makePhoneCall({
        phoneNumber: num,
        success: () => rs(true),
        fail: (err) => rj(err)
    });
}

</script>

<style lang="scss" scoped>

</style>